<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <title>到期提醒列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="resources/layui/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="resources/layui/css/public.css" media="all" />
</head>
<body class="childrenBody">
<form class="layui-form">
    <table id="expireRemindsList" lay-filter="expireRemindsList"></table>

    <!--操作-->
    <!--<script type="text/html" id="expireRemindsListBar">-->
        <!--<a class="layui-btn layui-btn-xs" lay-event="detail">查看详细</a>-->
    <!--</script>-->
</form>
<script type="text/javascript" src="resources/layui/layui/layui.js"></script>
<script th:inline="none">
    layui.use(['form','layer','table','laytpl'],function(){
        var form = layui.form,
            layer = parent.layer === undefined ? layui.layer : top.layer,
            $ = layui.jquery,
            laytpl = layui.laytpl,
            table = layui.table;

        //到期提醒列表
        var tableIns = table.render({
            elem: '#expireRemindsList',
            url : 'expireReminds',
            page : true,
            height : "full-125",
            limit : 20,
            limits : [10,15,20,25],
            id : "expireRemindsListTable",
            cols : [[
                {field: 'carNo', title: '车牌号码', align:"center"},
                {field: 'expireDate', title: '到期日期', align:"center"},
                {field: 'type', title: '提醒类型', align:"center"},

                // {title: '操作', width:120, templet:'#expireRemindsListBar',fixed:"right",align:"center"}
            ]]
        });

        // table.on("tool(expireRemindsList)",function (obj) {
        //     //获取当前行的数据
        //     var data=obj.data;
        //     switch (obj.event){
        //         case 'detail':
        //             deleteExpireRemind(data);
        //             break;
        //     }
        // });
    })
</script>
</body>
</html>